package client;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;

public class InputMasterClient extends Thread{
	private BufferedReader br;
	private Client c;
	private boolean running;
	public InputMasterClient(BufferedReader br,Client c){
		this.br=br;
		this.c=c;
	}
	public void run() {
		running=true;
		while(running){
			String fromServer=null;
	        try {
				while ((fromServer = br.readLine()) != null) {
					c.newInput(fromServer);
				}
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
	public void stopMe(){
		running=false;
	}

}
